﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using MyHotel.MyHotel_MHPhong_BUS_Webservice;

namespace MyHotel
{
    class RoomStateBlank : StateRoom
    {
        public override Image getImage()
        {
            return Properties.Resources.controng;
        }

        public override void LeftClick(Phong p, uscRoom room)
        {
            frmNhanPhong nhanphong = new frmNhanPhong(p);
            DialogResult result = nhanphong.ShowDialog();
            if (result == DialogResult.OK)
            {
                room.State = new RoomStateHiring();
            }
        }

        public override void RightClick(Phong p, uscRoom room)
        {
            MessageBox.Show("Phong trong Right Click");
        }

        public override System.Drawing.Color getTextColor()
        {
            return Color.White;
        }

        public override string getNameState()
        {
            return "Còn Trống";
        }

        public override StateRoom Clone()
        {
            return new RoomStateBlank();
        }  
    }
}
